//职责：初始化所有的表的模型

module.exports = function(db,models,table){

	//初始化表结构
	 models[table] = db.define(table,{
        	 uid : { type: 'serial', key: true },
        	 utitle:String,
        	 ucontent:String,
        	 ureads:Number,
             uups:Number,
             udowns:Number
        });
	models[table].sync(function (err) {
		!err && console.log("done!");
	});
}
